package acceptanceTests.registration;

import server.ForumServer;

//
/**
 *
 * @author RavitH
 *
 */
public interface RegistrationInt {
	/**
	 *
	 * @param userName :	a new valid user name
	 * @param password :	the password for that user name
	 * @return :	true for a successful registration,
	 * 				false otherwise
	 */
	boolean register(String userName,String email,String password);
	/**
	 *
	 * @param userName :	the user name of an existing user
	 * @return :	true for a successful deletion of a registered user,
	 * 				false otherwise
	 */
	boolean deleteRegisterUser(String userName);

	/**
	 *
	 * @param userName :	the user name of an existing user
	 * @return :	true if the user is registered in the forum,
	 * 				false otherwise
	 */
	boolean isRegisteredUser(String userName);
	/**
	 *
	 * @param userName : the user name of an existing user
	 * @return true if the user is a regular user (not modifier, administrator...)
	 */
	boolean isRegularUser(String userName);
	ForumServer getServer();

}
